00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _uc_components_h_
00019 #define _uc_components_h_
00020
00021 #include "boost/smart_ptr/shared_ptr.hpp"
00022 #include "gridpack/component/base_component.hpp"
00023 #include "gridpack/component/data_collection.hpp"
00024 #include "gridpack/network/base_network.hpp"
00025
00026 namespace gridpack {
00027 namespace unit_commitment {
00028
00029 class UCBus
00030 : public gridpack::component::BaseBusComponent
00031 {
00032 public:
00033
00034
00035
00036 UCBus(void);
00037
00038
00039
00040
00041 ~UCBus(void);
00042
00043
00044
00045
00046
00047
00048
00049
00050 void load(const boost::shared_ptr<gridpack::component::DataCollection> &data);
00051
00052
00053
00054 double objectiveFunction(void);
00055
00056
00057
00058 bool solution(void);
00059
00060 int numGen;
00061 std::vector<double> p_iniLevel;
00062 std::vector<double> p_minUpTime;
00063 std::vector<double> p_minDownTime;
00064 std::vector<double> p_minPower;
00065 std::vector<double> p_maxPower;
00066 std::vector<double> p_costConst;
00067 std::vector<double> p_costLinear;
00068 std::vector<double> p_costQuad;
00069 std::vector<double> p_rampUp;
00070 std::vector<double> p_rampDown;
00071 std::vector<double> p_startUp;
00072 std::vector<double> p_initPeriod;
00073 std::vector<double> p_startCap;
00074 std::vector<double> p_shutCap;
00075 std::vector<double> p_opMaxGen;
00076 std::vector<double> p_powerProduced;
00077 std::vector<double> p_powerReserved;
00078 std::vector<int> p_gen;
00079 private:
00080 int p_num_generator;
00081 int p_bus_id;
00082
00083 friend class boost::serialization::access;
00084
00085 template<class Archive>
00086 void serialize(Archive & ar, const unsigned int version)
00087 {
00088 ar & boost::serialization::base_object<gridpack::component::BaseBusComponent>(*this)
00089 & p_num_generator;
00090 }
00091
00092 };
00093
00094 class UCBranch
00095 : public gridpack::component::BaseBranchComponent {
00096 public:
00097
00098
00099
00100 UCBranch(void);
00101
00102
00103
00104
00105 ~UCBranch(void);
00106
00107
00108
00109
00110
00111
00112
00113
00114 void load(const boost::shared_ptr<gridpack::component::DataCollection> &data);
00115
00116
00117
00118 private:
00119
00120
00121 };
00122
00123
00124
00125 typedef network::BaseNetwork<UCBus, UCBranch > UCNetwork;
00126
00127
00128 }
00129 }
00130
00131 BOOST_CLASS_EXPORT_KEY(gridpack::unit_commitment::UCBus);
00132 BOOST_CLASS_EXPORT_KEY(gridpack::unit_commitment::UCBranch);
00133
00134
00135 #endif